<?php 
  require_once('Admin/Common/template/inc_admin.php');
 ?>
 <div id="content">

            <div class="inner" style="min-height:1200px;">
                <div class="row">
                    <div class="col-xs-12">
      <h1 style="text-align:center">
        搜索结果如下</h1> 
   <div class="container-fluid control-label  col-md-12 ">

   <table class="table table-hover">
   <tr class="info">
     <th>视频编号</th>
         <th>视频名</th>
         <th>视频类型</th>
         <th>视频海报</th>
         <th>添加时间</th>
         <th>地址</th>
   </tr>

<?php 
foreach ($data['videos'] as $row) {
   echo '<tr>';
   echo '<td>'.$row['vid'].'</td>';
   echo '<td>'.$row['videoname'].'</td>';  
  
   switch($row['tid']){
     case '11':$dg = "连续剧";break;
     case '12':$dg = "电影";break;
     case '13':$dg = "动画";break;
     case '14':$dg = "综艺";break;
     default: $dg="不知道";
     }

   echo '<td>'.$dg.'</td>';
   echo '<td align="center"><img src="./upload/'.$row['pic'].'" width=60 height=80 alt="无海报"></td>';
   echo '<td>'.$row['uploaddate'].'</td>';
   echo '<td>'.$row['address'].'</td>';     
   echo '</tr>';  
  }
  echo '</table>';  
  $totalrows = count($data['videos']);
  echo '<h2 style="font-family:微软雅黑;text-align:right;color:red;position:relative;right:50px">共有'.$totalrows.'部视频</h2>'; 
 ?>
 </div>
                </div>
            </div>
        </div>
 </div>
  <nav class="navbar navbar-fixed-bottom">
    <a href="#" "><img align="right"  src="./assets/images/gotop.jpg" alt="回顶部" width="50" height="50"></a>
</nav>
  </body>
</html>